import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { createFolders } from "./utils/base";
import * as process from "process";
import { ValidationPipe } from "@nestjs/common";
import * as path from "path";

export const assets_path = path.resolve(__dirname + '/../assets');

async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  app.useGlobalPipes(new ValidationPipe());

  await app.listen(3000);
}
bootstrap();
